const mySymbol = Symbol();
const a = {};

a.mySymbol = 'Hello!';
a['mySymbol'] // "Hello!"

var b=Reflect.ownKeys(a)        //得到所有的key 包括mySymbol

console.log(b)